/** @format */

const express = require("express");
const multer = require("multer");
const fileController = require("../controller/fileController");

const router = express.Router();
const upload = multer({ dest: "public" });
const excelUpload = multer({ dest: "public/excel" });
const dailyUpload = multer({ dest: "public/daily" });
router.post("/upload", upload.single("files"), fileController.upload);
router.post("/excelUpload", excelUpload.single("files"), fileController.excelUpload);
router.post("/dailyUpload", dailyUpload.single("files"), fileController.dailyUpload);

module.exports = router;
